﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;

namespace NTmdb.TestProject
{
    /// <summary>
    ///     This is a test class for TmdbCompanyMethodExtensionTest and is intended
    ///     to contain all TmdbCompanyMethodExtensionTest Unit Tests
    /// </summary>
    [TestClass]
    public class TmdbCompanyMethodExtensionTest
    {
        /// <summary>
        ///     A test for ToTmdbParameter
        /// </summary>
        [TestMethod]
        public void ToTmdbParameterTest()
        {
            const TmdbCompanyMethod value = TmdbCompanyMethod.Movies;
            IApiConfiguration apiConfiguration = new ApiConfiguration();
            apiConfiguration.AppendToCompanyMethodMovies = Guid.NewGuid().ToString();
            var expected = apiConfiguration.AppendToCompanyMethodMovies;
            string actual = value.ToTmdbParameter( apiConfiguration );
            Assert.AreEqual( expected, actual );
        }
    }
}